Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TimeManager = undefined;
var exp_TimeManager = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
  }
  return babel_createClass(_ctor, [{
    key: "convertTimeToDHMS",
    value: function convertTimeToDHMS(e) {
      var t = Math.floor(e / 1e3);
      var n = Math.floor(t / 86400);
      var _o100 = Math.floor((t - 86400 * n) / 3600);
      var i = Math.floor((t - 86400 * n - 3600 * _o100) / 60);
      var s = Math.floor(t - 86400 * n - 3600 * _o100 - 60 * i);
      var a = "";
      a += n > 0 ? n.toString() + "天" : "";
      a += _o100 > 0 ? _o100.toString() + "小时" : "";
      return (a += i > 0 ? i.toString() + "分" : "") + (s > 0 ? s.toString() + "秒" : "");
    }
  }, {
    key: "getCurrentTime",
    value: function getCurrentTime() {
      return new Date().getTime();
    }
  }, {
    key: "getCurrentTimeOfString",
    value: function getCurrentTimeOfString() {
      var e = new Date();
      var t = e.getFullYear() + "年";
      t += e.getMonth() + "月";
      t += e.getDate() + "日";
      return (t += e.getHours() + ":") + (e.getMinutes() < 10 ? "0" : "") + e.getMinutes();
    }
  }, {
    key: "get_MonthAndDay",
    value: function get_MonthAndDay() {
      var e = new Date();
      return "".concat(e.getMonth() + 1, "月") + (e.getDate() + "日");
    }
  }, {
    key: "getWeek_n",
    value: function getWeek_n() {
      return new Date().getDay();
    }
  }, {
    key: "getWeekTH",
    value: function getWeekTH() {
      var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
      var t = new Date(e.getFullYear(), 0, 1);
      var n = e.valueOf() - t.valueOf();
      var _o101 = Math.floor(n / 864e5);
      var i = t.getDay();
      1 !== i && (_o101 += 7 - i + 1);
      return Math.ceil(_o101 / 7);
    }
  }], [{
    key: "getInstance",
    value: function getInstance() {
      null == this.instance && (this.instance = new _ctor());
      return this.instance;
    }
  }]);
}();
exports.TimeManager = exp_TimeManager;
exp_TimeManager.instance = null;